Mega Code Archive

Categories
1) Android
2) ASP.Net
3) ASP.Net Tutorial
4) C
5) C Tutorial
6) C#
7) C# Book
8) C# by API
9) C# Tutorial
10) C++
11) C++ Tutorial
12) Delphi
13) Flash ActionScript
14) Flex
15) Java
16) Java Book
17) Java by API
18) Java Tutorial
19) JavaScript DHTML
20) JavaScript Reference
21) JavaScript Tutorial
22) MSOfficeExcel 2007 Tutorial
23) MSOfficePowerPoint 2007 Tutorial
24) MSOfficeWord 2007 Tutorial
25) MSSQL
26) MSSQL Tutorial
27) MySQL
28) MySQL Tutorial
29) Oracle PLSQL
30) Oracle PLSQL Tutorial
31) Perl
32) Php
33) PostgreSQL
34) Python
35) Python Tutorial
36) Ruby
37) Silverlight
38) VB.Net
39) VB.Net by API
40) VB.Net Tutorial
41) Visual C++ .NET
42) VisualBasic Script
43) XML
44) XML Tutorial
 
Java
1) 2D Graphics GUI
2) 3D Graphics
3) Advanced Graphics
4) Ant
5) Apache Common
6) Applet
7) Awt
8) Beginners Lab
9) Chart
10) Class
11) Collections Data Structure
12) Core
13) Data Type
14) Database SQL JDBC
15) Date Time
16) Design Pattern
17) Development Class
18) EJB3
19) Email
20) Event
21) File Input Output
22) Game
23) Generics
24) GWT
25) Hibernate
26) Internationalization
27) J2EE
28) J2ME
29) JDBC
30) JDK
31) JNDI LDAP
32) JPA
33) JSP
34) JSTL
35) Language Basics
36) Learning
37) Mathematics
38) Network Protocol
39) PDF RTF
40) Reflection
41) Regular Expressions
42) Scripting
43) Security
44) Servlets
45) Session
46) Sound
47) Spring
48) Swing Components
49) Swing JFC
50) SWT Jface Eclipse
51) Threads
52) Tiny Application
53) Util
54) Velocity
55) Web Services SOA
56) XML
Event
1) A ComponentAdapter
2) A demonstration of the ChangeEvents generated by the BoundedRangeModel
3) A position of a window on the screen
4) Action, Mouse Focus
5) ActionEvent getActionCommand()
6) ActionMap javax swing JComponent getActionMap()
7) Activating a Keystroke When Any Child Component Has Focus
8) Activating a Keystroke When Any Component in the Window Has Focus
9) Adding an InputMap to a Component
10) An application that shows the Action class in, well, action
11) AncestorListener Demo
12) Change the backward focus traversal keys for the application
13) Change the forward focus traversal keys for a component
14) Changes the focus traversal keys for the entire application
15) CheckBox Item Listener
16) Component Event Demo
17) Construct a new key description from a given universal string description
18) Container Event Demo
19) Converting a KeyStroke to a String
20) Creating a Custom Event
21) Creating a KeyStroke and Binding It to an Action
22) Customized Event
23) Demonstrate a listener being reused
24) Demonstrating the ActionListener
25) Demonstrating the AdjustmentListener
26) Demonstrating the AncestorListener
27) Demonstrating the ComponentListener
28) Demonstrating the ContainerListener
29) Demonstrating the FocusListener
30) Demonstrating the HyperlinkListener
31) Demonstrating the InternalFrameListener
32) Demonstrating the ItemListener
33) Demonstrating the KeyListener
34) Demonstrating the MenuListener
35) Demonstrating the MouseListener and MouseMotionListener
36) Demonstrating the MouseWheelListener
37) Demonstrating the PopupMenuListener
38) Demonstrating the WindowListener
39) Demonstrating the WindowListener with a WindowAdapter
40) Derive a class from a component and implement an action listener inside the class
41) Detecting Double and Triple Clicks
42) Determining If a Focus Lost Is Temporary or Permanent
43) Determining the Opposite Component of a Focus Event
44) Display the addXXXListener methods of any Swing class
45) Drags within the image
46) Event Listener List
47) Event object has information about an event, that has happened
48) Event source and listener
49) EventListenerList enabled Secret Label
50) EventTest Pane
51) Extends MouseAdapter and implements MouseMotionListener to create a mouse drawing programm
52) Find the previous focusable component
53) Finding the Next Focusable Component
54) Focus Event Demo
55) Focus Next Component Sample
56) Get key pressed as a key character (which is a Unicode character)
57) Get key pressed as a key code
58) Get Key Text
59) Handle a window closing event
60) Handle mouse button click event
61) Handle mouse motion event
62) Handling Key Presses
63) Handling Mouse Clicks
64) Handling Mouse Motion
65) have multiple listeners
66) Implement a graphical list selection monitor
67) Implements ActionListener to create action class
68) Implements AWTEventListener
69) Implements VetoableChangeListener to block focus change events
70) InputEvent BUTTON1_MASK (for left mouse button)
71) InputEvent BUTTON2_MASK (for middle mouse button)
72) InputEvent BUTTON3_MASK (for right mouse button)
73) InputMap javax swing JComponent getInputMap(int condition)
74) Installsresets a ComponentListener to resize the given window to minWidthHeight if needed
75) Int java awt AWTEvent getID()
76) Int java awt event WindowEvent WINDOW_OPENED
77) ItemListener for JRadioButton
78) JAR Archives
79) JComponent setFocusTraversalKeys(int arg0, Set extends AWTKeyStroke arg1)
80) JComponent WHEN_IN_FOCUSED_WINDOW
81) Key Event Demo
82) Key event on frame
83) KeyboardFocusManager BACKWARD_TRAVERSAL_KEYS
84) KeyboardFocusManager FORWARD_TRAVERSAL_KEYS
85) KeyboardFocusManager getCurrentKeyboardFocusManager() clearGlobalFocusOwner()
86) KeyboardFocusManager getCurrentKeyboardFocusManager() getDefaultFocusTraversalKeys(KeyboardFocusManager BACKWARD_TRAVERSAL_KEYS)
87) KeyListener, ActionListener Demo 1
88) KeyListener, ActionListener Demo 2
89) Keymap and KeyStroke Demo
90) KeyStroke getKeyStroke(F2)
91) KeyStroke Sample
92) KeyStroke to String
93) List keystrokes in the WHEN_ANCESTOR_OF_FOCUSED_COMPONENT input map of the component
94) List keystrokes in the WHEN_IN_FOCUSED_WINDOW input map of the component
95) Listening to All Focus Changes Between Components and windows
96) Listening to All Key Events Before Delivery to Focused Component
97) Load Save Action
98) Map actions with keystrokes
99) Modify a component
100) Monitors the AWT event dispatch thread for events that take longer than a certain time to be dispatched
101) Mouse drag and draw
102) Mouse Event Demo
103) Mouse Wheel Event Demo
104) MouseDrag -- implement simple mouse drag in a window
105) MouseDragClip -- implement simple mouse drag in a window Speed up by using clipping regions
106) MouseMotion Event
107) Move and scale graphical objects with a mouse on the panel
108) Move Shape with mouse
109) Multicast event
110) Multiple sources
111) Null is returned if none of the components in this application has the focus
112) Null is returned if none of the windows in this application has the focus
113) Press shift space or shift F2 to move the focus to the previous focusable component
114) Preventing a Component from Gaining the Focus
115) PropertyChangeListener Sample
116) Reads for modifiers and creates integer with required mask
117) Register action
118) Register several listeners for one event
119) Remove all backward focus traversal keys for the application
120) Remove all forward focus traversal keys for the application
121) Removing listeners
122) Removing the Focus from the Application
123) Responding to Keystrokes
124) SetAWTKeyStroke java awt Container getFocusTraversalKeys(int id)
125) Setting Focus Traversal Keys for the Entire Application
126) Setting Focus Traversal Keys in a Component
127) Setting the Initial Focused Component in a Window
128) Show events as they happen
129) Showing how to add Actions for KeyStrokes
130) Sketch
131) StateChange Listener
132) Swing Action Demo
133) Swing Event MultiListener
134) Swing Mouse Motion Event Demo
135) TextAction example
136) Timer Sample
137) Use Action class
138) Use Focus Events in Swing
139) Use the Event queue to retrieve event
140) Using an inner ActionListener class
141) Using ComponentListener to catch the JFrame Maximization event
142) Using EventQueue invokeLater to start a Swing application
143) Validating a JTextField When Permanently Losing the Focus
144) Void InputMap put(KeyStroke keyStroke, Object actionMapKey)
145) Void java awt Toolkit addAWTEventListener(AWTEventListener listener, long eventMask)
146) Window Event Demo
147) You can change event behavior dynamically